package com.kawa.kemanage.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NewsFavoritesMapper {
    //取消收藏
    int delectFavorites(@Param("favorite_id") Integer favorite_id);

    /**
     * 根据新闻id查看收藏数
     * @param content_id
     * @return
     */
    Long getFavoritesCount(@Param("content_id") Integer content_id);
}
